<?php
/**
 * Created by PhpStorm.
 * User: ytl003
 * Date: 2018/5/21
 * Time: 下午3:15
 */

namespace app\api\controller\v1;


use app\api\model\BuildingClass;
use app\api\model\MapSet;

class Map
{
    public function init(){
        $mapset = MapSet::get(1);
        $schools = ['汇东','汇北','营盘','宜宾'];
        return json([
            'mapSet' => $mapset,
            'schools' => $schools,
            'building' => BuildingClass::getBuilding(),
        ]);
    }
}